<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
function remove_special_characters($str)
	{
				
		//it will remove all special characters except A-Z a-z 0-9 and also space
		$new_string = ereg_replace("[^A-Za-z0-9[:space:]]", "", $str);
		
		return $new_string;
	
	}
	
	/*$body = ereg_replace(8216, "&#039;", $keyword); // left single quote
    $body = ereg_replace(145, "&#039;", $body); // left single quote
    $body = ereg_replace(8217, "&#039;", $body); // right single quote
    $body = ereg_replace(146, "&#039;", $body); // right single quote
    $body = ereg_replace(8220, "&#034;", $body); // left double quote
    $body = ereg_replace(147, "&#034;", $body); // left double quote
    $body = ereg_replace(8221, "&#034;", $body); // right double quote
    $keyword = ereg_replace(148, "&#034;", $body); // right double quote*/

	
	
